<div id="tickets">
  <ul>
    @for(ticket of tickets;track ticket.id){
      <li>
        <app-ticket  [data]="ticket"  (click)="onCloseTicket(ticket.id)"/>
      </li>
    } @empty {
      <p>Not tickets available.</p>
    }
  </ul>
</div>



<div id="new-ticket">
  <app-new-ticket (add)="onAdd($event)"/>
</div>

